﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="companyMoney.aspx.cs" Inherits="WebSite.admin.company.companyMoney" %>


 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="/js/MathLibrary.js"></script>
    <script language='javascript'>

        function trim(str) { //删除左右两端的空格
            return str.replace(/(^\s*)|(\s*$)/g, "");
        }

        function checkForm() {

            var money = document.getElementById('<%=this.txtMoney.ClientID %>');
            if (trim(money.value) == "") {
                alert('金额不能为空!');
                money.focus();
                return false;
            } else if (isNaN(money.value)) {
                alert('金额只能为数字!');
                money.focus();
                return false;
            }
            return true;

        }
        function convertDecimal(num) {
            document.getElementById('<%= this.lblMoney.ClientID %>').innerText = "";

            if (checkForm()) {
                document.getElementById('<%= this.lblMoney.ClientID %>').innerText = cmycurd(num);
            }

        }


	</script>
</head>
<body >
    <form id="form1" runat="server">
    <div class="maincontent">
                  <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
                        所在位置：应收应付款->
                        <%= Request.QueryString["type"] == "in" ? "入账" : "出账"%>
                        <a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
                    </div>
    <center>

  <table width="100%" border="0" cellpadding="5" cellspacing="0">
      <tr>
      <td width="36%" align="right" class="title01">公司名称：</td>
      <td width="64%" align="left">
      
      <asp:Label ID="lblCompanyName" runat="server" ></asp:Label>
      </td>
    </tr>

      <tr>
      <td width="36%" align="right" class="title01">类型：</td>
      <td width="64%" align="left">
      <asp:Label ID="lblType" runat="server" ></asp:Label>
          &nbsp;</td>
    </tr>

    <tr>
      <td align="right" class="title01"> 金额(元)：</td>
      <td align="left">
         <asp:TextBox ID="txtMoney" runat="server" onchange="convertDecimal(this.value)" class="txtMoney"></asp:TextBox>*
        </td>
    </tr>
    <tr>
      <td align="right" class="title01"> &nbsp;</td>
      <td align="left">
          <asp:Label ID="lblMoney" runat="server" ></asp:Label>
        </td>
    </tr>

    <tr>
      <td align="right" class="title01"> 备注：</td>
      <td align="left">
         <asp:TextBox ID="txtRemark" runat="server" class="txtMoney" Height="119px" 
              TextMode="MultiLine" Width="258px"></asp:TextBox>
        </td>
    </tr>
    <tr>
      <td align="center" colspan="2">
         <asp:Button ID="btnSubmit" runat="server" Text="保 存" CssClass="formButton" OnClick="btnSubmit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
          <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;"  /></td>
    </tr>
  </table>
</center>
    </div>
    </form>
</body>
</html>
